package com.oo.abstractAndInterface_6.shape;

/**
 * Parallelogram--${description}
 *
 * @author: Jovi
 * @createTime: 2017-04-18 15:58
 **/
public class Parallelogram extends Shape{

    private int side;

    public int getSide() {
        return side;
    }

    public void setSide(int side) {
        this.side = side;
    }

    @Override
    public int perimeter() {
        return (this.getBottom() + this.getSide()) * 2;
    }

    @Override
    public int area() {
        return this.getHigh()*this.getBottom();
    }
}
